<?php

require_once 'controller.php';
$courseList = $instructor->getCourse($_GET['cid']);
$groupList = $courseList->getAllGroups();
if($_GET['for']=='c'){


 //var_dump($groupList);

?>
<!--
 <select name="theGroups" id="selboxgrp" size="1" >
         
        
         <?php 
 
		
		if($groupList != null) {
			$count = 0;
			 foreach($groupList as $gr) {	 	 
			 
				 //print "<option value='$gr->id' >".ucfirst($gr->name)."</option>";
				 $count++;
				 
				}
				
			}
		  
		   ?>
 </select>-->

 <?php }elseif($_GET['for']=='g'){?>
 
 
 <select name="theGroups" id="selboxgrp" size="1" >
        <option value="g" > </option>
        <option value="g" > DANKU SRIJITA SING</option>
        <option value="all" >All</option>
        
         <?php 
 
		
		if($groupList != null) {
			$count = 0;
			 foreach($groupList as $gr) {	 	 
			 
				 print "<option value='$gr->id' >".ucfirst($gr->name)."</option>";
				 $count++;
				 
				}
				
			}
		  
		   ?>
 </select>

 
 
 <?php }?>